class User {
  User({this.id, this.name, this.desc});

  int? id;
  String? name;
  String? desc;

  Map<String, dynamic> toMap() {
    var map = <String, dynamic>{};

    map['id'] = id;
    map['name'] = name;
    map['desc'] = desc;

    return map;
  }

  factory User.fromMapObject(Map<String, dynamic> map) {
    return User(id: map['id'], name: map['name'], desc: map['desc']);
  }
}
